/*
 *	UNIX shell
 *
 *	S. R. Bourne
 *	Bell Telephone Laboratories
 */

#include "defs.h"

/* changed _HAT to 0;  In original sh '^' == '|' ; Nikola Vladov */
#ifdef WANT_HAT_AS_PIPE
#define X_HAT _HAT
#else
#define X_HAT 0
#endif

char _ctype1[] = {
/*	000	001	002	003	004	005	006	007	*/
	_EOF, 	0, 	0, 	0, 	0, 	0, 	0, 	0,

/*	bs	ht	nl	vt	np	cr	so	si	*/
	0, 	_TAB, 	_EOR, 	0, 	0, 	0, 	0, 	0,

	0, 	0, 	0, 	0, 	0, 	0, 	0, 	0,

	0, 	0, 	0, 	0, 	0, 	0, 	0, 	0,

/*	sp	!	"	#	$	%	&	'	*/
	_SPC, 	0, 	_DQU, 	0, 	_DOL1, 	0, 	_AMP, 	0,

/*	(	)	*	+	,	-	.	/	*/
	_BRA, 	_KET, 	0, 	0, 	0, 	0, 	0, 	0,

/*	0	1	2	3	4	5	6	7	*/
	0, 	0, 	0, 	0, 	0, 	0, 	0, 	0,

/*	8	9	:	;	<	=	>	?	*/
	0, 	0, 	0, 	_SEM, 	_LT, 	0, 	_GT, 	0,

/*	@	A	B	C	D	E	F	G	*/
	0, 	0, 	0, 	0, 	0, 	0, 	0, 	0,

/*	H	I	J	K	L	M	N	O	*/
	0, 	0, 	0, 	0, 	0, 	0, 	0, 	0,

/*	P	Q	R	S	T	U	V	W	*/
	0, 	0, 	0, 	0, 	0, 	0, 	0, 	0,

/*	X	Y	Z	[	\	]	^	_	*/
	0, 	0, 	0, 	0, 	_BSL, 	0,  X_HAT, 	0,

/*	`	a	b	c	d	e	f	g	*/
	_LQU, 	0, 	0, 	0, 	0, 	0, 	0, 	0,

/*	h	i	j	k	l	m	n	o	*/
	0, 	0, 	0, 	0, 	0, 	0, 	0, 	0,

/*	p	q	r	s	t	u	v	w	*/
	0, 	0, 	0, 	0, 	0, 	0, 	0, 	0,

/*	x	y	z	{	|	}	~	del	*/
	0, 	0, 	0, 	0, 	_BAR, 	0, 	0, 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